// ==UserScript== 
// @name ajuribe2
// @namespace http://geneura.org/projects/greasemonkey 
// @description Navegación por las secciones de AAP 
// @include http://geneura.ugr.es/~jmerelo/asignaturas/* 
// ==/UserScript== 

GM_log('Entrando AAP-Nav'); 
var h3 = document.getElementsByTagName('h3'); 



//for ( var secs = 0; secs < h3.length; secs ++ ) 
//{ 
 
//}
for ( var i = 0; i < h3.length; i ++ ) 
{ 
	span=document.createElement('span');
	span.setAttribute('style','background:lightblue'); 
	for ( var secs = 0; secs < h3.length; secs ++ ) 
	{ 
		var ahref = document.createElement('a'); 
		ahref.setAttribute('href','#ej.T1.'+(secs+1)); 
		var txt=document.createTextNode(' | ej'+(secs+1)); 
		ahref.appendChild(txt); 
		span.appendChild(ahref); 
	} 
	h3[i].parentNode.insertBefore(span,h3[i]); 
}
